﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SiteMaster.master" AutoEventWireup="true"
    CodeFile="DefaultRecentDeal.aspx.cs" Inherits="DefaultRecentDeal" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="GMaps" Namespace="Subgurim.Controles" TagPrefix="cc1" %>
<%@ Register Src="~/UserControl/Gmap.ascx" TagName="Googlemap" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="" id="main-content">
        
        <div class="body">
            <table id="main-body">
                <tbody>
                    <tr>
                        <td class="content">
                            <div class="box-outer">
                                <div class="share-links">
                                </div>
                                <div class="dealbox main box">
                                    <div class="dealtitle">
                                        <span class="todays-deal">Today's Deal:</span>
                                        <asp:Label ID="lblDealTitle" runat="server" Text=""></asp:Label></div>
                                    <table>
                                        <tbody>
                                            <tr>
                                                <td class="left">
                                                    <div class="buybox">
                                                        <div class="buy">
                                                            <asp:Label ID="lblRegularPrice" runat="server" Text="$25" CssClass="cost"></asp:Label>
                                                            <asp:Image ID="ImageButton2" runat="server" ImageUrl="~/Images/sold_out.png" Visible="True" />
                                                        </div>
                                                        <table style="padding: 1px 0px;" class="numbers">
                                                            <tbody>
                                                                <tr>
                                                                    <td class="price">
                                                                        <asp:Label ID="lblValue" runat="server"></asp:Label>
                                                                    </td>
                                                                    <td class="x">
                                                                        &nbsp;
                                                                    </td>
                                                                    <td class="discount">
                                                                        <asp:Label ID="lblDiscount" runat="server"></asp:Label>
                                                                    </td>
                                                                    <td class="eq">
                                                                        &nbsp;
                                                                    </td>
                                                                    <td class="save">
                                                                        <asp:Label ID="lblSave" runat="server"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        Value
                                                                    </td>
                                                                    <td>
                                                                    </td>
                                                                    <td>
                                                                        Discount
                                                                    </td>
                                                                    <td>
                                                                    </td>
                                                                    <td>
                                                                        Savings
                                                                    </td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                    </div>
                                                   
                                                    <div style="clear: left; text-align: center; font-weight: bold; color: #003333; height: 25px;
                                                        margin: 10px 0 0 50px; font-size: 15px; text-align: center; float: left;">
                                                        <asp:Label ID="TotalPurchaseQty" runat="server" Text=""></asp:Label></div>
                                                </td>
                                                <td class="right">
                                                    <div class="mainimg">
                                                        <asp:Image ID="DealImg" Height="299" Width="430" runat="server" ImageUrl="../images/product.jpg" />
                                                    </div>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    <table>
                                        <tbody>
                                            <tr>
                                                <td class="footprint">
                                                    <h3>
                                                        Keep In Mind</h3>
                                                    <asp:Label ID="txtFootPrint" runat="server" Text=""></asp:Label>
                                                </td>
                                                <td class="highlight">
                                                    <h3>
                                                        Did You Know?</h3>
                                                    <asp:Label ID="lblHighlights" runat="server" Text=""></asp:Label>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                                <div class="box-inner">
                                </div>
                            </div>
                            <div class="companybox-outer">
                                <div class="companybox-inner">
                                    <div id="companybox">
                                        <table class="main">
                                            <tbody>
                                                <tr>
                                                    <td class="short">
                                                        <span class="large">
                                                            <div class="black">
                                                                Company Info:</div>
                                                        </span>
                                                        <asp:Label ID="lblVendor" runat="server" Text=""></asp:Label><br>
                                                        <a href="" id="website" target="_blank" runat="server">
                                                            <asp:Label ID="lblWebSite1" runat="server" Text="Website"></asp:Label></a><br>
                                                        <br>
                                                        <div class="black">
                                                            <b>Location(s):</b>
                                                        </div>
                                                        <div>
                                                            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                                                <ContentTemplate>
                                                                    <telerik:RadListView ID="RadAddressBox" runat="server" ItemPlaceholderID="ListViewContainer"
                                                                        Skin="Telerik" SkinID="Telerik" DataKeyNames="Address1,Address2,City,State,ZipCode,DealID">
                                                                        <LayoutTemplate>
                                                                            <asp:PlaceHolder runat="server" ID="ListViewContainer" />
                                                                        </LayoutTemplate>
                                                                        <ItemTemplate>
                                                                            <fieldset class="loc_link">
                                                                                <div style="font-size: small; word-wrap: break-word;">
                                                                                    <asp:Label ID="Address1" runat="server" Text='<%#Eval("Address1")%>'></asp:Label>
                                                                                    <asp:Label ID="Address2" runat="server" Text='<%#Eval("Address2")%>'></asp:Label><br>
                                                                                    <asp:Label ID="City" runat="server" Text='<%#Eval("City")%>'></asp:Label>&nbsp;
                                                                                    <asp:Label ID="State" runat="server" Text='<%#Eval("State")%>'></asp:Label>
                                                                                    <asp:Label ID="ZipCode" runat="server" Text='<%#Eval("ZipCode")%>'></asp:Label><br>
                                                                                    <a href='<%#"https://" + Eval("WebSite")%>' id="website" target="_blank" runat="server">
                                                                                        <asp:Label ID="lblWebSite" runat="server" Text='<%#Eval("WebSite")%>'></asp:Label></a>
                                                                                    <br />
                                                                                    <br />
                                                                                    <a href='<%#"https://maps.google.com/maps?q=" + TrimDescription(Eval("Address1")as string,Eval("City") as string,Eval("State") as string,Eval("ZipCode") as string)%>'
                                                                                        id="A1" target="_blank" runat="server">
                                                                                        <asp:Label ID="Label1" runat="server" Text="Map It!" ForeColor="Red"></asp:Label>
                                                                                    </a>
                                                                                    <br />
                                                                                    <br />
                                                                                    <div style="cursor: pointer;">
                                                                                        <uc1:Googlemap ID="Googlemap1" runat="server" _Address1='<%#Eval("Address1")%>' _City='<%#Eval("City")%>'
                                                                                            _State='<%#Eval("State")%>' _GID='<%#Eval("DealAddressID")%>' />
                                                                                    </div>
                                                                                    <br>
                                                                                    ----------------------
                                                                                </div>
                                                                            </fieldset>
                                                                        </ItemTemplate>
                                                                    </telerik:RadListView>
                                                                </ContentTemplate>
                                                            </asp:UpdatePanel>
                                                        </div>
                                                    </td>
                                                    <td>
                                                        <span class="bold">Description:</span>
                                                        <br>
                                                        <p>
                                                            <asp:Label ID="lblDescription" runat="server"></asp:Label></p>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                        </td>
                     </tr></tbody></table>
                   
    </div>
   </div>
</asp:Content>
